package com.hhk.project_01.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取配置文件中的someOne属性
 * 1：把这个类注册到spring容器中：@Component
 * 2:把获取需要获取属性的前缀@ConfigurationProerties
 * */
@Component
@ConfigurationProperties(prefix = "someone")
public class GetSmoeOneProperties {
    public String name;
    public String website;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }
}
